home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4867 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  37 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: FindTask()
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <DntF6C.4Bs@unx.sas.com>
  8. Date: Tue, 5 Mar 1996 22:15:48 GMT
  9. X-Nntp-Posting-Host: cdevil.unx.sas.com
  10. References:  <192.6637T931T2098@academy.bastad.se>
  11. Organization: SAS Institute Inc.
  12.  
  13.  
  14. In article <192.6637T931T2098@academy.bastad.se>, sten@academy.bastad.se (Sten Jansson) writes:
  15. >When calling FindTask() with FindTask(0) and there are several tasks with
  16. >the same name as the task that is calling e.g. "shell process" - can you  be
  17. >sure that it finds the right task?
  18.  
  19. Yes, 100%, at least in the current (3.1) and all previous versions of
  20. the Amiga OS.
  21.  
  22. This is because when you use FindTask(NULL), it doesn't look up based on
  23. the name (how can it, when you didn't pass one in?!?), it simply returns
  24. the value stored as
  25.  
  26.         yourprocess->pr_ThisTask;
  27.  
  28. -- 
  29. ---------------
  30. Jim Cooper
  31. (jamie@unx.sas.com)                             bix: jcooper
  32.  
  33. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  34. and not necessarily those of my employer.
  35.  
  36. I'm NOT Politically Correct, but that's because I'm "Sensitivity Challenged."
  37.